

	 
<script type="text/javascript">
	$(document).ready(function() {
	});

	function laporan2(pageURL, title,w,h){

		var periode_awal=document.getElementById('tanggal_awal').value;

		var periode_akhir=document.getElementById('tanggal_akhir').value;

		if ((periode_awal=='')||(periode_akhir=='')){

			alert('Isilah periode awal dan akhir');

		}else{

			var left = (screen.width/2)-(w/2);

			var top = (screen.height/2)-(h/2);

			var targetWin = window.open ('<?=site_url();?>/angggaran/report/'+periode_awal+'/'+periode_akhir, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

			

			document.getElementById('tanggal_awal').value='';

			document.getElementById('tanggal_akhir').value='';

		}
	}
	
	function laporan(pageURL, title,w,h){

		var id=document.getElementById('tahuntahun').value;

		 

		if (id==''){

			alert('Pilihlan tahun');

		}else{

			var left = (screen.width/2)-(w/2);

			var top = (screen.height/2)-(h/2);

			var targetWin = window.open ('<?=site_url();?>/anggaran/report_form/'+id, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

			
 

		}
	}
	
 

	function batal(){

		document.location.href="<?=site_url();?>/anggaran";

	}

	

</script>

				 
<script  type="text/javascript">
   
			$("#tahuntahun").change(function(){
            var nilaitahun = $("#tahuntahun").val();
			var counter = <? echo $counter;?>
			//var counter = '0';
			var kirim = nilaitahun+'#'+counter;
            $.ajax({
               type : "POST",
               url  : "<?php echo base_url(); ?>index.php/pengeluaran_kas/getParent_1",
			   data : "kirim=" + kirim,
               success: function(data){
                   $("#product-table").html(data);
               }
            });

			 
        });
		 
		 function test()
		 {
			$.fancybox.close();
			}
		</script>
  


	<?php 
		if(validation_errors())
		{
	?>
			<ul class="message error grid_12">
				<li><?=validation_errors()?></li>
				<li class="close-bt"></li>
			</ul>	
	<?php
		} 
	?>
<div id="viewPosting_data"></div>
<div id="page-heading"><h1>Anggaran >> Ekspor Data</h1></div>


<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="<?php echo base_url();?>asset/admin/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="<?php echo base_url();?>asset/admin/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner -->
		<div id="content-table-inner">
		<div id="table-content">
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr valign="top">
				<td>			
					<!--  start step-holder -->
					<div id="step-holder">
						<div class="step-no">1</div>
						<div class="step-light-left">
							<?php 
								echo anchor('anggaran/index', 'Daftar File Upload');
							?>
						</div>
						<div class="step-light-right">&nbsp;</div>
						<div class="step-no">2</div>
						<div class="step-light-left">
							<?php  
								echo anchor('anggaran/add', 'Import Data Anggaran');
						?>
						</div>
						<div class="step-light-right">&nbsp;</div>
						<div class="step-no">3</div>
						<div class="step-light-left">
							<?php 
								$now = date('m')-1;
								$now2 = '1-'.$now.'-'.date('Y');
								$now3 = '31-'.$now.'-'.date('Y');
								echo anchor('anggaran/verifikasi', 'Daftar Data Anggaran');
						?>
						</div>
						<div class="step-light-right">&nbsp;</div>
						<div class="step-no">4</div>
						<div class="step-dark-left">
							<?php
								echo anchor('anggaran/report', 'Ekspor Data');
							?>
						</div>
						<div class="step-dark-round">&nbsp;</div>
											
						<div class="clear"></div>
					</div>
			<!--  end step-holder -->
			<!-- start id-form -->
			<table border="0" cellpadding="0" cellspacing="0"  id="id-form" width="100%">
			<?php 
			$attributes = array('name' => 'form1', 'id' => 'form1', 'class'=>'block-content form');
			echo form_open_multipart('anggaran/report', $attributes);
			?>
			<tr>
				<th valign="top"></th>
				<td>	
					<br/><br/><br/> 
				</td> 
			</tr>
			<tr>
				 
				<td colspan="2">	  
						<select name="tahuntahun" id="tahuntahun" >
						<option value="">--Pilih Tahun--</option>
						<?php
						 	
								foreach($tahun->result()  as $row)
									{
										echo '<option value="'.$row->id_anggaran.'">'.$row->tahun.'</option>';
									}						
						?>
						</select>
				</td>	
			</tr>
			<tr> 
				<td class="noheight" colspan="2">
				 &nbsp;
				</td>	
			</tr>
			<tr>			 
				<td class="noheight" colspan="2">			 
					 
					
					<input type="submit" value="Print Preview" class="form-submit" onclick="laporan('<?=site_url();?>/anggaran/report/','name',1000,800)"/>
					<input type="reset" value="Batal" class="form-reset" onclick="javascript:batal();" />
				</td>	
			</tr>
			<tr>
				<th valign="top"></th>
				<td>	
					<br/><br/><br/><br/><br/><br/><br/><br/>
				</td> 
			</tr>
			
			</form>
			</table>
			<!-- end id-form  -->
			
		</td>
		</tr> 			
	 
					
		</table>	
		</div> 
		
			
	</td>
		 
		 
	<div class="clear"></div>
 

	 
	<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>
 


			